package com.rainng.coursesystem.model.entity;


import com.alibaba.fastjson2.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;

import java.util.Date;

@TableName("vis_sys_group")
@Data
public class UserGroupEntity {

    //private static final long serialVersionUID = 778404080504526346L;

    @TableId(value = "id",type = IdType.ASSIGN_ID)
    private String id;
    /**
     * 组别名
     */
    @TableField(value = "group_name")
    private String groupName;
    /**
     * 组别码
     */
    @TableField(value = "group_code")
    private String groupCode;
    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    //@TableField(fill = FieldFill.INSERT)
    //@JsonSerialize(using = DateJsonSerializer.class)
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;
    /**
     * 创建人
     */
    @TableField("create_by")
    private String createBy;
    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    //@TableField(fill = FieldFill.UPDATE)
    //@JsonSerialize(using = DateJsonSerializer.class)
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;
    /**
     * 更新人
     */
    @TableField("update_by")
    private String updateBy;
    /**
     * 备注信息
     */
    @TableField(value = "remark")
    private String remark;




}



